package com.raychi.demo.util;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.raychi.demo.entity.Student;

public class StudentUtil {
	public static Student createStudent(ResultSet rs) throws SQLException {
		Student student;
		student = new Student();
		student.setName(rs.getString("name"));
		student.setAge(rs.getInt("age"));
		student.setId(rs.getInt("id"));
		return student;
	}
}
